package org.example.service.serviceImpl;

import org.example.model.FormData;
import org.example.repository.FormUseData;
import org.example.service.FormUseDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FormUseDataServiceImpl implements FormUseDataService {
    @Autowired
    FormUseData  formUseData;
    @Override
    public void saveData(FormData formData) {
        formUseData.saveData(formData);
    }

    @Override
    public int deleteData(Integer dataId, String formName) {
        return 0;
    }

    @Override
    public int updateData(FormData formData) {
        return 0;
    }

    @Override
    public List<FormData> findData(String formName) {
        return formUseData.findData(formName);
    }


}
